package com.shop.entity;

import java.util.Objects;

public class GoodsDetailImgVO {
    private String g_name;      //商品名
    private String g_data;      //商品简介
    private String g_datail;    //商品详情
    private String gft_name;        //商品一级分类
    private String gst_name;        //商品二级分类
    private String gtt_name;        //商品三级分类
    private String gfour_name;        //商品四级分类
    private double gd_price;   //商品单价
    private int gd_num;        //商品数量
    private int s_id;          //商家id（外键）
    private String img_path;         //图片的路径
    private String uu_id ;

    public GoodsDetailImgVO(String g_name, String g_data, String g_datail, String gft_name, String gst_name, String gtt_name, String gfour_name, double gd_price, int gd_num, int s_id, String img_path, String uu_id) {
        this.g_name = g_name;
        this.g_data = g_data;
        this.g_datail = g_datail;
        this.gft_name = gft_name;
        this.gst_name = gst_name;
        this.gtt_name = gtt_name;
        this.gfour_name = gfour_name;
        this.gd_price = gd_price;
        this.gd_num = gd_num;
        this.s_id = s_id;
        this.img_path = img_path;
        this.uu_id = uu_id;
    }

    public GoodsDetailImgVO() {
    }

    public GoodsDetailImgVO(String g_name, String gft_name, String gst_name, String gtt_name, String gfour_name, Double gd_price, int gd_num, int s_id, String img_path, String uu_id) {
        this.g_name = g_name;
        this.gft_name = gft_name;
        this.gst_name = gst_name;
        this.gtt_name = gtt_name;
        this.gfour_name = gfour_name;
        this.gd_price = gd_price;
        this.gd_num = gd_num;
        this.s_id = s_id;
        this.img_path = img_path;
        this.uu_id = uu_id;
    }

    public String getG_name() {
        return g_name;
    }

    public void setG_name(String g_name) {
        this.g_name = g_name;
    }

    public String getG_data() {
        return g_data;
    }

    public void setG_data(String g_data) {
        this.g_data = g_data;
    }

    public String getG_datail() {
        return g_datail;
    }

    public void setG_datail(String g_datail) {
        this.g_datail = g_datail;
    }

    public String getGft_name() {
        return gft_name;
    }

    public void setGft_name(String gft_name) {
        this.gft_name = gft_name;
    }

    public String getGst_name() {
        return gst_name;
    }

    public void setGst_name(String gst_name) {
        this.gst_name = gst_name;
    }

    public String getGtt_name() {
        return gtt_name;
    }

    public void setGtt_name(String gtt_name) {
        this.gtt_name = gtt_name;
    }

    public String getGfour_name() {
        return gfour_name;
    }

    public void setGfour_name(String gfour_name) {
        this.gfour_name = gfour_name;
    }

    public double getGd_price() {
        return gd_price;
    }

    public void setGd_price(double gd_price) {
        this.gd_price = gd_price;
    }

    public int getGd_num() {
        return gd_num;
    }

    public void setGd_num(int gd_num) {
        this.gd_num = gd_num;
    }

    public int getS_id() {
        return s_id;
    }

    public void setS_id(int s_id) {
        this.s_id = s_id;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    public String getUu_id() {
        return uu_id;
    }

    public void setUu_id(String uu_id) {
        this.uu_id = uu_id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsDetailImgVO that = (GoodsDetailImgVO) o;
        return Double.compare(that.gd_price, gd_price) == 0 && gd_num == that.gd_num && s_id == that.s_id && Objects.equals(g_name, that.g_name) && Objects.equals(g_data, that.g_data) && Objects.equals(g_datail, that.g_datail) && Objects.equals(gft_name, that.gft_name) && Objects.equals(gst_name, that.gst_name) && Objects.equals(gtt_name, that.gtt_name) && Objects.equals(gfour_name, that.gfour_name) && Objects.equals(img_path, that.img_path) && Objects.equals(uu_id, that.uu_id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(g_name, g_data, g_datail, gft_name, gst_name, gtt_name, gfour_name, gd_price, gd_num, s_id, img_path, uu_id);
    }

    @Override
    public String toString() {
        return "GoodsDetailImgVO{" +
                "g_name='" + g_name + '\'' +
                ", g_data='" + g_data + '\'' +
                ", g_datail='" + g_datail + '\'' +
                ", gft_name='" + gft_name + '\'' +
                ", gst_name='" + gst_name + '\'' +
                ", gtt_name='" + gtt_name + '\'' +
                ", gfour_name='" + gfour_name + '\'' +
                ", gd_price=" + gd_price +
                ", gd_num=" + gd_num +
                ", s_id=" + s_id +
                ", img_path='" + img_path + '\'' +
                ", uu_id='" + uu_id + '\'' +
                '}';
    }
}
